<?php

require dirname(__FILE__). "/../classes/ContactCli.class.php";
require dirname(__FILE__). "/../classes/ClientsDAO.class.php";
require dirname(__FILE__). "/../classes/AddressDAO.class.php";
require dirname(__FILE__). "/../classes/ConnectionFactory.class.php";
require dirname(__FILE__). "/../classes/ContactAddress.class.php";

$cli=new ContactCli();
$ad=new ContactAddress();

if(isset($_GET['id']) && (!empty($_GET['id']))) {
$con=new ConnectionFactory();
$co=$con->getConnection();

$dao=new ClientsDAO($co);
$daoa=new AddressDAO($co);

$cli=$dao->getById($_GET['id']);
$ad=$daoa->getByIdCli($_GET['id']);
    

}

?>
